home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / etc / ppp / ip-up.d / 000resolvconf < prev   
Encoding:
Text File  |  2006-08-09  |  467 b   |  27 lines

  1. #!/bin/sh
  2. #
  3. # PPP up hook script for resolvconf
  4. #
  5. # Reconfigures resolver to take into account
  6. # the appearance of the ppp interface
  7. #
  8. # Licensed under the GNU GPL.  See /usr/share/common-licenses/GPL.
  9. #
  10. # History
  11. # June 2003: Written by Thomas Hood <jdthood@yahoo.co.uk>
  12.  
  13. [ -x /sbin/resolvconf ] || exit 0
  14.  
  15. R=""
  16. if [ "$DNS1" ] ; then
  17.     R="${R}nameserver $DNS1
  18. "
  19. fi
  20. if [ "$DNS2" ] ; then
  21.     R="${R}nameserver $DNS2
  22. "
  23. fi
  24.  
  25. echo -n "$R" | /sbin/resolvconf -a "$PPP_IFACE"
  26.  
  27.